﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteUser.Master" AutoEventWireup="true" CodeBehind="Updatemember.aspx.cs" Inherits="ProjectSem3.WebForm8" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $('#form1').validate({
            rules: {
                <%=TextBoxFirstname.UniqueID %>: {
                    number: false,
                    required: true  
                },
                <%=TextBoxLastname.UniqueID %>: {
                    required: true
                },
                <%=TextBoxSalary.UniqueID %>: {
                    number: true,
                    required: true
                },
                <%=TextBoxAddress.UniqueID %>: {
                    required: true
                },
                <%=TextBoxContact.UniqueID %>: {
                    required: true
                },
                <%=TextBoxCountry.UniqueID %>: {
                    required: true
                },
                <%=TextBoxCity.UniqueID %>: {
                    required: true
                },
            }
        });
    });

</script>
<style type="text/css">
    label.error 
    {
        color:Red;
        }
</style>
    <div style="width:500px; height:560px; margin:30px 0 0 60px;">
        <h3 style="color: #0000FF; font-size: 16px;" align="center">Update Employee Details</h3>
        <ul style="list-style-type: none; margin-left:35px;">
        <li>
            <asp:Label ID="Label1" runat="server" Text="Username :"></asp:Label>
                <asp:Label ID="Label1Username" runat="server" Text=""></asp:Label>
            <br />
            <asp:Label ID="Label2" runat="server" Text="First Name :"></asp:Label>
            <div style="margin:-28px 0 0 95px">
            </div>
        </li>
        <li>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxFirstname" runat="server"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Label ID="Label3" runat="server" Text="Last Name :"></asp:Label>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxLastname" runat="server"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Label ID="Label10" runat="server" Text="Join Date :"></asp:Label>
            <div style="margin:-28px 0 0 95px">
                <asp:Label ID="LabelJoindate" runat="server" Text=""></asp:Label>
            </div>
        </li>
        <li>
            <asp:Label ID="Label5" runat="server" Text="Salary :"></asp:Label>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxSalary" runat="server"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Label ID="Label6" runat="server" Text="Address :"></asp:Label>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxAddress" runat="server" TextMode="MultiLine" 
                    Width="128px"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Label ID="Label7" runat="server" Text="Contact :"></asp:Label>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxContact" runat="server"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Label ID="Label9" runat="server" Text="Country :"></asp:Label>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxCountry" runat="server"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Label ID="Label11" runat="server" Text="City"></asp:Label>
            <div style="margin:-28px 0 0 75px">
                <asp:TextBox ID="TextBoxCity" runat="server"></asp:TextBox>
            </div>
        </li>
        <li>
            <asp:Button ID="Button1" runat="server" Text="Update" 
                        onclick="ButtonUpdate_Click" style="margin:20px 0 0 100px;" />
        </li>
        </ul>
    </div>
</asp:Content>
